Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple of issues when invoking Gallery from Suggested Edits. #5238

Merged
merged 6 commits into from
Jan 17, 2025

Conversation

dbrant
Copy link
Member

@dbrant dbrant commented Jan 17, 2025

This fixes a couple of issues that stem from previous legacy conversions of code, and/or incomplete understandings of how the code is supposed to work:

  • When completing an Image Caption from a Suggested Edits feed card, the resulting "View" action launches an incorrect activity. It should be launching FilePageActivity, but instead it tries launching GalleryActivity which will never work because GalleryActivity is not intended for viewing an individual File: page.
  • When showing a Link Preview, we call the page/media-list endpoint to get the list of images. However, for some reason we're calling it with a specific revision (page/media-list/123456..) which breaks the caching of that endpoint. (Asking for a specific revision should only be done when absolutely necessary, not in the default case.)

Phabricator:
https://phabricator.wikimedia.org/T383917

@dbrant dbrant added Minor Minor stuff High Priority Priority code review needed labels Jan 17, 2025
Streamline calls to PageSummary and MediaList.
@cooltey cooltey merged commit a24d953 into main Jan 17, 2025
1 check passed
@cooltey cooltey deleted the mediaListRevIssues branch January 17, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority Priority code review needed Minor Minor stuff
Development

Successfully merging this pull request may close these issues.

3 participants